//
//  PCDApiToNativePage.m
//  PCDBankSix
//
//  Created by Jason Tao on 2022/4/28.
//

#import "PCDApiToNativePage.h"
//#import "PCDLoginManagerViewController.h"
#import "NearBranchDetailViewController.h"

@implementation PCDApiToNativePage

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback )responseCallback
{
    NSDictionary *dict = (NSDictionary *)data;
    NSString * type = dict[@"busiName"];
    NSDictionary * params = dict[@"params"];
    UIViewController * vc = context.viewController;
     
    if ([type isEqualToString:@"permissionManager"]) {   //权限管理
//        PCDPrivacyProtocolViewController * privacyVC = [[PCDPrivacyProtocolViewController alloc] init];
//        [vc.navigationController pushViewController:privacyVC animated:YES];
    }else if ([type isEqualToString:@"BranchDetail"]) {   //网点详情
        NSArray *LIST = dict[@"LIST"];
        NearBranchDetailViewController *detailVC = [[NearBranchDetailViewController alloc]init];
        detailVC.detailModel = [[MyBranchListModel alloc]initWithDictonary:params];
        detailVC.list = LIST;
        [vc.navigationController pushViewController:detailVC animated:YES];
    }
    
    
    
}

@end
